'''
Created on Dec 5, 2009

@author: bodnaria
'''
from google.appengine.ext import db

def createBid(user, amount):
    bid = Bid(bidding_user = user, 
              amount = amount)
    bid.put()
    return bid
    
class Bid(db.Model):
    from User import User
    bidding_user = db.ReferenceProperty(User, required=True)
    date = db.DateTimeProperty(auto_now=True)
    amount = db.FloatProperty(required = True)
